﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Standard;
using RoadTeam.BLL;
using System.Data;

namespace RoadTeam.Pase
{
    public class DictPase : BasePase
    {
        /// <summary>
        /// 根据字典类型获取字典值
        /// 参数[DictCode]:字典类型
        /// </summary>
        /// <param name="DictCode">字典类型</param>
        /// <returns>字典值数据集合</returns>
        public static PcDict GetDictDataSync(String DictCode)
        {
            BllBase bllbase = new BllBase();
            //bllbase.InserLog("方法名[GetDictDataSync]调用时间[" + DateTime.Now.ToString() + "]参数为:[" + DictCode + "]");

            bllbase.InsertLog("方法名[GetDictDataSync]调用时间[" + DateTime.Now.ToString() + "]参数为:[" + DictCode + "]",
@"RoadTeam.Pase.DictPase", "public static PcDict GetDictDataSync(String DictCode)");

            PcDict Pcdict = new PcDict();
            DictBLL bll = new DictBLL();
            DataTable dt = bll.GetDictSync(DictCode);
            List<Dict> li = DtToList<Dict>(dt);
            Pcdict.Item = li.ToArray();
            return Pcdict;
        }
    }
}
